#include <Misc.au3>
#include <..\utility.au3>
#include <..\skillSets.au3>

HotKeySet("{PAUSE}", "theExit")
HotKeySet("9","theExit")

;can only toggle between 2 and 3.  Calling 2 twice (or 3 twice)
;has undefined results
While 1
	processkey('70', "mousePos") ;F1
	processkey('71', "toscripted") ;F2
	processkey('72', "tomanual") ;F3
	processkey('73', "test") ;F4
 WEnd

Func test()
	;change 1 from Voodoo to Soul Harvest/Vengeful
	selectSkillType(1)
	scrollLeft(2)
	selectSkill(1,3)
	selectRune(6)
	clickAccept()

EndFunc

Func toscripted()
	;change passive from Gruesome Feast to Pierce the Veil
	selectSkillType(7)
	selectPassiveSkill(8)
	clickAccept()

	;change left from Poison Darts to Fetish/Legion of Daggers
	selectSkillType(5)
	scrollLeft()
	selectSkill(3, 3)
	selectRune(4)
	clickAccept()

	;change 1 from Soul Harvest to Voodoo/Rain Dance
	selectSkillType(1)
	scrollRight(2)
	selectSkill(2,3)
	selectRune(3)
	clickAccept()

	;change 4 (Gargantuan) rune from Restless to Wrathful
	selectSkillType(4)
	selectRune(4)
	clickAccept()

EndFunc

Func tomanual()
	;change passive
	selectSkillType(7)
	selectPassiveSkill(4)
	clickAccept()

	;change left from Fetish to poison darts/splinter
	selectSkillType(5)
	scrollRight()
	selectSkill(1,4)
	selectRune(2)
	clickAccept()

	;change 1 from Voodoo to Soul Harvest/Vengeful
	selectSkillType(1)
	scrollLeft(2)
	selectSkill(1,3)
	selectRune(6)
	clickAccept()

	;change 4 (Gargantuan) rune from Wrathful to Restless
	selectSkillType(4)
	selectRune(3)
	clickAccept()


EndFunc

